<template>
	<view class="container" :style="{height:`calc(100vh - ${height}px)`}">
		<Header back title="资料下载"></Header>
		<view class="wapper">
			<div class="title"><span>{{ title}}</span> </div>
			<div class="content" v-html="content"></div>
		</view>
	</view>
</template>

<script>
	import Header from '@/components/haeder.vue'
	import banner1 from '@/static/banner/banner1.png'
	export default {
		components: {
			Header
		},
		data() {
			return {
				height: 0,
				content: '',
				title:"展会介绍"
			}
		},
		methods: {

		},
		async mounted() {
			let res = await this.$api.getNavs1()
			console.log(res.value.content)
			this.content = res.value.content
		},
		created() {
			let app = uni.getSystemInfoSync();
			this.height = app.windowBottom
		}
	}
</script>

<style scoped lang="scss">
	.container {
		width: 100vw;
		overflow: auto;
		display: flex;
		flex-direction: column;

		.wapper {
			flex: 1;
			background: #f2f2f2;
			z-index: 100;
			margin-top: -280rpx;
			border-top-left-radius: 60rpx;
			border-top-right-radius: 60rpx;
			padding: 20rpx;
			font-size: 24rpx;

			.title {
				margin-top: 20rpx;
				text-align: center;

				span {
					padding: 10rpx;
					color: #0c6cc1;
					font-size: 28rpx;
					border: 1px solid #000;
					box-shadow: 14rpx 14rpx 0rpx #0c6cc1;
				}
			}

			.banner {
				margin: 40rpx 0;
				border-radius: 40rpx;
				overflow: hidden;
			}

			.content {
				margin-top: 40rpx;
				padding: 10rpx;
				text-indent: 2em;
				color: #0c6cc1;
				border: 1px solid #000;
				box-shadow: 14rpx 14rpx 0rpx #0c6cc1;
				font-size: 24rpx;
			}
		}
	}
</style>